From: Lars Magne Ingebrigtsen Date: Sat, 2 Jul 2011 20:59:18 +0000 (+0200) Subject: * simple.el (shell-command-on-region): Say where the error output X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3159 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=31921420b11a308233a37eb1499b5684db5b3e29;p=emacs.git * simple.el (shell-command-on-region): Say where the error output went if `shell-command-default-error-buffer' is set. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8267f44d3c2..2b13d587779 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-07-02 Lars Magne Ingebrigtsen + + * simple.el (shell-command-on-region): Say where the error output + went if `shell-command-default-error-buffer' is set (bug#6857). + 2011-07-02 Ken Manheimer * allout.el (allout-yank-processing): Adjust cursor position for diff --git a/lisp/simple.el b/lisp/simple.el index b36cf2ec3ec..6c078830a18 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2531,7 +2531,10 @@ specifies the value of ERROR-BUFFER." (let ((output (if (and error-file (< 0 (nth 7 (file-attributes error-file)))) - "some error output" + (format "some error output%s" + (if shell-command-default-error-buffer + (format " to the \"%s\" buffer" shell-command-default-error-buffer) + "")) "no output"))) (cond ((null exit-status) (message "(Shell command failed with error)"))